package org.springmole.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springmole.business.bean.Result;
import org.springmole.business.bean.hibernate.CollectionData;
import org.springmole.business.bean.hibernate.EntityData;
import org.springmole.business.bean.hibernate.HibernateResultData;
import org.springmole.business.bean.hibernate.QueryData;
import org.springmole.business.bean.hibernate.SecondLevelData;
import org.springmole.business.bean.hibernate.SummaryData;
import org.springmole.business.dao.HibernateDao;
import org.springmole.business.service.HibernateService;


@Service
public class HibernateServiceImpl implements HibernateService {

	@Autowired
	private HibernateDao hibernateDao;
	
	@Override
	public Result<HibernateResultData<EntityData>> getEntityStatistic() {
		return hibernateDao.getEntityStatistic();
	}

	
	@Override
	public Result<HibernateResultData<SecondLevelData>> getSecondLevelDataStatistics() {
		return hibernateDao.getSecondLevelDataStatistics();
	}


	@Override
	public Result<HibernateResultData<CollectionData>> getCollectionStatistic() {
		return hibernateDao.getCollectionStatistic();
	}


	@Override
	public Result<HibernateResultData<QueryData>> getQueryStatistic() {
		return hibernateDao.getQueryStatistic();
	}


	@Override
	public Result<HibernateResultData<SummaryData>> getSummaryDataStatistics() {
		return hibernateDao.getSummaryDataStatistics();
	}
}
